load("//bazel:api.bzl", "mojo_library", "pkg_files")

package(default_visibility = ["//visibility:public"])

exports_files(["__init__.mojo"])

filegroup(
    name = "stdlib_srcs",
    srcs = glob(["**/*.mojo"]),
)

mojo_library(
    name = "stdlib",
    srcs = [
        ":stdlib_srcs",
    ],
    validate_missing_docs = True,
)

pkg_files(
    name = "docs",
    srcs = [":stdlib.docs"],
    renames = {
        "stdlib.docs": "stdlib",
    },
)
